package vip.xiaomaoxiaoke.functiondemo.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import vip.xiaomaoxiaoke.functiondemo.msg.service.ReliableMethodExecuteService;

@EnableScheduling
@Component
public class Task {


    @Autowired
    private ReliableMethodExecuteService reliableMessageSendService;


    @Scheduled(fixedDelay = 2000)
    public void test() {
        reliableMessageSendService.loadAndResend(10);
    }
}
